// module.exports = file => require('@/views/' + file + '.vue').default // vue-loader at least v13.0.0+
// module.exports = file => () => import('@/views/' + file + '.vue') // 开发环境也使用路由懒加载，以便使用getNameByPath
let count = 0
module.exports = (file) => {
  try {
    return require('@/views/' + file + '.vue').default
  } catch (err) {
    if (count === 0) {
      count++
      console.log('发现有新页面,请及时拉取代码更新本地页面目录后重新启动项目！！！')
    }
  }
}
